package com.qian.ddj.web.controller;

import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "测试借口")
@RequestMapping("/ddj/test")
@RestController
public class TestController {
    @Autowired
    private BCryptPasswordEncoder passwordEncoder;

    @RequestMapping
    public String pass(String password){
        String pass = passwordEncoder.encode(password);
        return pass;
    }
}
